class Type < ActiveRecord::Base
  validates_presence_of :name
  validates_uniqueness_of :name
  
  class << self
    
    def find_produto
      find :first, :conditions => [ 'name like ?', 'Produto' ]
    end

    def find_suprimento
      find :first, :conditions => [ 'name like ?', 'Suprimento' ]
    end    
    
  end
  
  
end
